#ifndef	__GLOBALDEFINE_H__
#define	__GLOBALDEFINE_H__


#include<Windows.h>
#include<d3d9.h>
#include<d3dx9.h>
#include"..\AuroraSupport\AuroraSprite.h"
#include"UASSprite.h"
#include"UASGame.h"

//	#######################################################
//	Game logic variable start

//	Reference my blog article: when we should use const variable, and what can appear in .h files.
//	http://blog.csdn.net/korekara88730/article/details/7400046

const int g_iWindowPosX = 100;
const int g_iWindowPosY = 100;
const int g_iWindowSizeX = 800;
const int g_iWindowSizeY = 600;

extern IDirect3D9 *g_pD3D;
extern IDirect3DDevice9 *g_pd3dDevice;

//extern UASGame *g_pMyGame;

//	Game logic variable end
//	#######################################################



//#######################################################
//	interface support start
#define	Interface class
#define	DeclareInterface(name) Interface name{\
			public:\
			virtual ~name(){}

#define	DeclareBasedInterface(name,base) class name:public base {\
			public:\
			virtual ~name(){}

#define	EndInterface	};
#define Implements		public

//	interface support end
//#######################################################


#endif	//	__GLOBALDEFINE_H__